package me.zhengjie.modules.enrstu.service.enums;

import lombok.Getter;

@Getter
public enum ReviewStatus {

    PASSED("通过"),
    NOT_PASSED("不通过"),
    RETURNED("退回审核"),
    NOT_ADMITTED("待录取"),
    ADMITTED("已录取"),
    REP_REVIEW("待复审"),
    FIR_REVIEW("待初审");



    private final String description;

    ReviewStatus(String description) {
        this.description = description;
    }

    public static ReviewStatus fromDescription(String description) {
        for (ReviewStatus status : ReviewStatus.values()) {
            if (status.description.equals(description)) {
                return status;
            }
        }
        return null;
    }
}
